import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
// 导入格式化时间的第三方包
import * as dayjs from 'dayjs'

/* 富文本 */
// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// 导入富文本编辑器样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

// 导入全局样式
import '@/styles/global.css'
/* 按需引入element-ui组件库 */
// import '@/components/global.js'
import '@/components/global.js'
import Bread from '@/components/Bread.vue'
Vue.component('Bread', Bread)

// 全局注册富文本编辑器组件
Vue.use(VueQuillEditor)

Vue.component('alert', alert)
// import axios from 'axios'
// Vue.prototype.$axios = axios
/*   this.$axios() */

// 定义时间格式化时间过滤器
Vue.filter('format', (msg) => {
  return dayjs(msg).format('YYYY-MM-DD HH:mm:ss')
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
